import request from '@/utils/http'

// 公告相关接口
// 分页查询公告列表
export function announcementSelectPage(params) {
  return request({
    url: '/selectAnnouncement/page',
    method: 'get',
    params
  })
}

// 新增公告
export function announcementInsertOne(data) {
  return request({
    url: '/insetAnnouncement',
    method: 'post',
    data
  })
}

// 修改公告
export function announcementUpdateOne(data) {
  return request({
    url: '/updateAnnouncement',
    method: 'put',
    data
  })
}

// 删除公告
export function announcementDeleteOne(announcementId) {
  return request({
    url: `/deleteAnnouncement/${announcementId}`,
    method: 'delete'
  })
} 